package com.fypWebService;

import java.io.IOException;
import java.util.Enumeration;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Servlet implementation class Login2FA2
 */
public class Login2FA2 extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public Login2FA2() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
			
		
		String userName=request.getParameter("userName");
		String preHash=(String) request.getAttribute("preHash");
		System.out.println("<fypWebService><Login2FA2><doPost>userName= "+userName);
		System.out.println("<fypWebService><Login2FA2><doPost>preHash= "+preHash);
		request.setAttribute("userName", userName);
		request.setAttribute("preHash", preHash);
		RequestDispatcher dispatcher = request.getRequestDispatcher("/Login2FA2.jsp");
		if (dispatcher != null) dispatcher.forward(request, response);
	}

}
